/*
 * Copyright 2010 Michael Nitsche
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package de.mnit.schnipsel.db;

import de.mnit.basis.daten.struktur.liste.S_Liste;
import de.mnit.basis.daten.struktur.tabelle.S_Tabelle;
import de.mnit.basis.daten.struktur.tabelle.typ.TypTabelle2;
import de.mnit.basis.fehler.benutzer.F_Benutzer;

/**
 * @author Michael Nitsche
 * 23.10.2010	Erstellt
 */
public interface S_DBZ_Baum {

	/** id,Oben,Titel,Offen,Geschützt,Kinder **/
	S_Tabelle<String> gTabBaum();
	S_Tabelle<String> gTabExport();
	TypTabelle2<Integer, Boolean> gTabOffen();
	boolean gGeschuetzt(int id);
	Integer gVater(int id);
	S_Liste<Integer> gUnterOrdner(int basis, boolean inkl_basis);

	boolean existiert(int id);

	void sSortierung(int id, Integer neuerVater, Integer index);
	void sStatus(int id, boolean offen);
	void sGeschuetzt(int id, boolean geschuetzt);

	void umbenennen(int id, String neu);
	Integer plus(Integer vater, String titel);
	void minus(int id);
	void leeren();

	/** index= 0 bis **/
	void verschieben(int id, Integer neuerVater, Integer index);

	void importiere(String id, String oben, String titel, String geschuetzt,
			String offen, String sort) throws F_Benutzer;

}